﻿namespace Dissemination.MVC.Repositories
{
    using System.Linq;
    using System.Collections.Generic;
    using Dissemination.MVC.Models;

    public class CountryRepository : BaseRepository<Country>
    {
        public CountryRepository()
        {
            EntityName = "Countries";
        }

        public override List<Country> List()
        {
            return dataContext.Countries.ToList();
        }

        public override Country Get(int id)
        {
            return dataContext.Countries.FirstOrDefault(c => c.CountryID == id);
        }
    }
}
